package com.csun.cmny.provider.model.dto.merchant;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;
import java.util.List;

@Data
public class MerchantSaveDto {


    /*商家名称*/
    @NotEmpty(message = "{merchant.name.null}")
    private String merchantName;

    /*商家地址信息*/
    @NotEmpty(message = "{merchant.address.null}")
    private String address;

    /*商家百度地图经度*/
    @NotNull(message = "{merchant.longitude.null}")
    private BigDecimal longitude;


    /*商家百度地图纬度*/
    @NotNull(message = "{merchant.latitude.null}")
    private BigDecimal latitude;

    /*负责人姓名*/
    @NotEmpty(message = "{merchant.principalName.null}")
    private String principalName;


    /*负责人电话*/
    @NotEmpty(message = "{merchant.principalPhone.null}")
    @Pattern(regexp = "^((\\+86)|(86))?(13|15|16|17|18|19)\\d{9}$",
            message = "{merchant.Phone.error}")
    private String principalPhone;

    /*负责人身份证号*/
    @NotEmpty(message = "{merchant.principalIDCard.null}")
    private String principalIDCard;

    /*营业执照图片code*/
    private String imgsCode;

    /*二级服务类别id集合*/
    @NotNull(message = "{merchant.secondLevelIds.null}")
    private List<Long> secondLevelIds;


    /*备注*/
    private  String remark;

    /*机构id*/
    private Long groupId;

    /*用户名*/
    private String  userName;

    /*用户id*/
    private Long userId;

}
